/*
 * $Id: OpenMapPropertiesDialog.java 63 2010-02-14 13:52:34Z aaron.day $
 */
package org.crazydays.gameplan.map.action;


import java.awt.event.ActionEvent;

import org.crazydays.gameplan.swing.AbstractActionWrapper;
import org.crazydays.gameplan.util.IconHelper;
import org.crazydays.i18n.Messages;

/**
 * OpenMapPropertiesAction
 */
public class OpenMapPropertiesDialog
    extends AbstractActionWrapper
{
    /** serial version uid */
    public final static long serialVersionUID =
        "$Id: OpenMapPropertiesDialog.java 63 2010-02-14 13:52:34Z aaron.day $"
            .hashCode();

    /** messages */
    public final static Messages MESSAGES = Messages.getInstance();

    /** resource key: name */
    public final static String RESKEY_NAME =
        "action.OpenMapPropertiesDialog.name";

    /** resource key: icon */
    public final static String RESKEY_ICON =
        "action.OpenMapPropertiesDialog.icon";

    /**
     * OpenMapPropertiesDialog constructor.
     */
    public OpenMapPropertiesDialog()
    {
        super(MESSAGES.getMessage(RESKEY_NAME), IconHelper.loadIcon(MESSAGES
            .getMessage(RESKEY_ICON)));
    }

    /**
     * Open map properties dialog.
     * 
     * @param event Event
     * @see java.awt.event.ActionListener#actionPerformed(ActionEvent)
     */
    public void actionPerformed(ActionEvent event)
    {
        controller.openMapPropertiesDialog();
    }
}
